import {Component, OnInit, Input, Injector} from '@angular/core';
import {NgZorroPageBaseComponent} from '../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component';
import {HttpService} from "../../core/service/http.service";
import {Router, Route, ActivatedRoute} from "@angular/router";
import {
  AndOr, Compare, ExpressionPair, PagedResultDto, PagerSearchInput, ElementViewType, BaseComponentConfig, SonPagerSearchInput,
  SystemFormControl, FieldType, CustomNavigation, ElementShowType, KeyValueOutput, SystemFormControlOutput,
} from "../..";
import {NzMessageService, NzModalService} from 'ng-zorro-antd';
import {
  FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators,
  FormControl
} from "@angular/forms";
import {Observable} from 'rxjs';
import {map} from 'rxjs/operators';

@Component({
  selector: 'app-system-form-control',
  templateUrl: '../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component.html',
  styleUrls: ['../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component.scss']
})
export class SystemFormControlComponent extends NgZorroPageBaseComponent implements OnInit {
  constructor(injector: Injector) {
    super(injector,
      new BaseComponentConfig(
        "SystemForm/GetPagerFormControls",
        "SystemForm/CreateFormControl",
        "SystemForm/UpdateFormControl",
        "SystemForm/GetFormControl",
        "SystemForm/DeteleFormControl",
        "id",
        "SystemFormControl",
        "字段管理",
        null,
        "systemFormId"
      ));
      this.showTitile = false;
  }

  getNewEntity(): SystemFormControlOutput {
    return new SystemFormControlOutput();
  }

  navigateCustom(url: string, pid: any) {
    throw new Error("Method not implemented.");
  }

  showModalForComponent(entity: any, tag: any) {
    throw new Error("Method not implemented.");
  }
}
